home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
STANDALO
/
SPROING!
/
SPROING_.C2
< prev
Wrap
Text File
|
1990-10-27
|
1KB
|
42 lines
/*_________________________________________________________________________
Sproing - A Springy Cursor INIT
October 1990
⌐1990 Scott Armitage
Written for Think C
This INIT installs the VBL task created in the Sproing VBL project.
The Sproing VBL should be compiled and merged with the
"Sproing INIT.rsrc" file prior to creating the INIT.
_________________________________________________________________________*/
#include "VRetraceMgr.h"
/*_____________________________________________________________________*/
main()
{
Handle ourCode;
VBLQElPtr vblPtr;
ourCode = GetResource('vbl ', 999); /* load our VBL code */
if (ourCode != 0) {
HLock(ourCode);
DetachResource(ourCode); /* make it permanent */
vblPtr = (VBLQElPtr) NewPtrSys(sizeof(VBLTask)); /* allocate vbl queue entry */
if (vblPtr != 0) {
vblPtr->qType = vType; /* fill in vbl queue entry */
vblPtr->vblAddr = (ProcPtr) *ourCode;
vblPtr->vblCount = 1;
vblPtr->vblPhase = 0;
VInstall(vblPtr); /* install it */
}
}
}